Skip to content

Conversation

@3405691582
Copy link
Collaborator

We're now in the position to introduce a netlink driver. This driver allows cvdalloc to (transitively) set up nearly all of the network allocation and deallocation steps in a faster, more idiomatic way than shelling out to ip(8).

Only one driver operation still requires shelling out to iptables(8). We can potentially use NETLINK_NETFILTER to do this in the future but this is actually somewhat more painful and involved than using netlink for the other driver operations. Maybe we can do this in the future; left as a TODO for now.

To use the driver until the default is changed, one can rebuild cvd with the --//allocd:driver=netlink custom bazel flag; without the flag, the the iproute2 driver is the default, for reasons mentioned in earlier commits.

@3405691582 3405691582 force-pushed the netlink_4 branch 4 times, most recently from 91742de to 7cd96a6 Compare January 9, 2026 16:19
@3405691582 3405691582 requested a review from Databean January 9, 2026 16:25
We're now in the position to introduce a netlink driver. This driver
allows cvdalloc to (transitively) set up nearly all of the network
allocation and deallocation steps in a faster, more idiomatic way than
shelling out to ip(8).

Only one driver operation still requires shelling out to iptables(8). We
can potentially use NETLINK_NETFILTER to do this in the future but this
is actually somewhat more painful and involved than using netlink for
the other driver operations. Maybe we can do this in the future; left as
a TODO for now.

To use the driver until the default is changed, one can rebuild cvd with
the `--//allocd:driver=netlink` custom bazel flag; without the flag, the
the iproute2 driver is the default, for reasons mentioned in earlier
commits.
@3405691582 3405691582 added the kokoro:run Run e2e tests. label Jan 12, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Jan 12, 2026
@3405691582 3405691582 added this pull request to the merge queue Jan 12, 2026
Merged via the queue into google:main with commit 829b0d4 Jan 12, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants